package com.hspedu.homework.homework05;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/24
 * @time 19:10
 */
public class Homework05 {
    public static void main(String[] args) {
        Worker worker = new Worker(1000);
        Peasant peasant = new Peasant(1000);
        Scientist scientist = new Scientist(1000, 1000);
        Teacher teacher = new Teacher(1000, 50, 30);
        Waiter waiter = new Waiter(1000);

        System.out.println(worker.getSal());
        System.out.println(peasant.getSal());
        System.out.println(scientist.getSal());
        System.out.println(teacher.getSal());
        System.out.println(waiter.getSal());
    }
}
